package cn.com.guage.dtm.mapping.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.guage.dtm.common.annotation.Excel;
import cn.com.guage.dtm.common.core.domain.BaseEntity;

/**
 * 表级映射信息对象 mapping_table_info
 * 
 * @author liujun
 * @date 2021-07-14
 */
public class MappingTableInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表映射Id */
    private Long tableId;

    /** 文档id */
    @Excel(name = "文档id")
    private Long excelId;

    /** 文档名称 */
    @Excel(name = "文档名称")
    private String excelFilename;

    /** 目标表id */
    @Excel(name = "目标表id")
    private Long targetTableId;

    /** 目标表code */
    @Excel(name = "目标表code")
    private String targetTableCode;

    /** 目标表名称 */
    @Excel(name = "目标表名称")
    private String targetTableName;

    /** 源表id */
    @Excel(name = "源表id")
    private Long sourceTableId;

    /** 源表code */
    @Excel(name = "源表code")
    private String sourceTableCode;

    /** 源表名称 */
    @Excel(name = "源表名称")
    private String sourceTableName;

    /** 取源数据sql */
    @Excel(name = "取源数据sql")
    private String sourceSql;

    /** 业务场景描述 */
    @Excel(name = "业务场景描述")
    private String bizScenario;

    /** 表主从分类 */
    @Excel(name = "表主从分类")
    private String mainSubType;

    /** 表主从关系 */
    @Excel(name = "表主从关系")
    private String mainSubDetail;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private String parseStatus;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMsg;

    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setExcelId(Long excelId) 
    {
        this.excelId = excelId;
    }

    public Long getExcelId() 
    {
        return excelId;
    }
    public void setExcelFilename(String excelFilename) 
    {
        this.excelFilename = excelFilename;
    }

    public String getExcelFilename() 
    {
        return excelFilename;
    }
    public void setTargetTableId(Long targetTableId) 
    {
        this.targetTableId = targetTableId;
    }

    public Long getTargetTableId() 
    {
        return targetTableId;
    }
    public void setTargetTableCode(String targetTableCode) 
    {
        this.targetTableCode = targetTableCode;
    }

    public String getTargetTableCode() 
    {
        return targetTableCode;
    }
    public void setTargetTableName(String targetTableName) 
    {
        this.targetTableName = targetTableName;
    }

    public String getTargetTableName() 
    {
        return targetTableName;
    }
    public void setSourceTableId(Long sourceTableId) 
    {
        this.sourceTableId = sourceTableId;
    }

    public Long getSourceTableId() 
    {
        return sourceTableId;
    }
    public void setSourceTableCode(String sourceTableCode) 
    {
        this.sourceTableCode = sourceTableCode;
    }

    public String getSourceTableCode() 
    {
        return sourceTableCode;
    }
    public void setSourceTableName(String sourceTableName) 
    {
        this.sourceTableName = sourceTableName;
    }

    public String getSourceTableName() 
    {
        return sourceTableName;
    }
    public void setSourceSql(String sourceSql) 
    {
        this.sourceSql = sourceSql;
    }

    public String getSourceSql() 
    {
        return sourceSql;
    }
    public void setBizScenario(String bizScenario) 
    {
        this.bizScenario = bizScenario;
    }

    public String getBizScenario() 
    {
        return bizScenario;
    }
    public void setMainSubType(String mainSubType) 
    {
        this.mainSubType = mainSubType;
    }

    public String getMainSubType() 
    {
        return mainSubType;
    }
    public void setMainSubDetail(String mainSubDetail) 
    {
        this.mainSubDetail = mainSubDetail;
    }

    public String getMainSubDetail() 
    {
        return mainSubDetail;
    }
    public void setParseStatus(String parseStatus) 
    {
        this.parseStatus = parseStatus;
    }

    public String getParseStatus() 
    {
        return parseStatus;
    }
    public void setErrorMsg(String errorMsg) 
    {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg() 
    {
        return errorMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tableId", getTableId())
            .append("excelId", getExcelId())
            .append("excelFilename", getExcelFilename())
            .append("targetTableId", getTargetTableId())
            .append("targetTableCode", getTargetTableCode())
            .append("targetTableName", getTargetTableName())
            .append("sourceTableId", getSourceTableId())
            .append("sourceTableCode", getSourceTableCode())
            .append("sourceTableName", getSourceTableName())
            .append("sourceSql", getSourceSql())
            .append("bizScenario", getBizScenario())
            .append("mainSubType", getMainSubType())
            .append("mainSubDetail", getMainSubDetail())
            .append("parseStatus", getParseStatus())
            .append("errorMsg", getErrorMsg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
